<!DOCTYPE html>
<html>
<head>
    <title>System Dialogs Example 2</title>
</head>
<body>
    <script type="text/javascript">

        if (confirm("Are you sure?")) {
            alert("I'm so glad you're sure! ");
        } else {
             alert("I'm sorry to hear you're not sure. ");
        }

    </script>
</body>
</html>
